import { t } from '@src/locales'

export default {
  name: 'tour-guide-mixin',
  data() {
    return {
      showTour: true,
      myCallbacks: {
        onPreviousStep: this.previousStep, // 在data中定义两个回调
        onNextStep: this.nextStep,
        onStop:this.stopStep
      },
      listOptions: {},
      listSteps: [{
        target: '#v-task-step-0',
        content: t('component.guide.listSteps[0]'),
      },
      {
        target: '#v-task-step-1',
        content: t('component.guide.listSteps[1]'),
      },
      {
        target: '#v-task-step-2',
        content: t('component.guide.listSteps[2]'),
      },
      // {
      //   target: '#v-task-step-3',
      //   content: '可自定义高级搜索'
      // },
      ],
      detailOptions: {},
      detailSteps: [{
        target: '#v-task-detail-step-0',
        content: t('component.guide.detailSteps[0][0]'),
        title: t('component.guide.detailSteps[0][1]')
      },
      {
        target: '#v-task-detail-step-1',
        content: t('component.guide.detailSteps[1]'),
      },
      {
        target: '#v-task-detail-step-2',
        content: t('component.guide.detailSteps[2]'),
      },
      {
        target: '#v-task-detail-step-3',
        content: t('component.guide.detailSteps[3][0]'),
        title: t('component.guide.detailSteps[3][1]')
      },
      ],
      deptOptions: {},
      deptSteps: [{
        target: '#v-dept-step-0',
        content: t('component.guide.deptSteps[0]'),
      },
      {
        target: '#v-dept-step-1',
        content: t('component.guide.deptSteps[1]'),
      },
      {
        target: '#v-dept-step-2',
        content: t('component.guide.deptSteps[2]'),
      },
      {
        target: '#v-dept-step-3',
        content: t('component.guide.deptSteps[3]'),
      },
      {
        target: '#v-dept-step-4',
        content: t('component.guide.deptSteps[4]'),
      }
      ],
    };
  },
  methods: {}
}